import axios from 'axios';

const baseURL = '/api';
const instance = axios.create({baseURL})

//添加请求拦截器
instance.interceptors.request.use(
    config=>{
        return config;       
    },
    err=>{
        ElMessage('请求拦截器发生错误');
        return Promise.reject(err);
    }
)

export default instance;